<!-- Licensed under a BSD license. See license.html for license -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>WebGL - Same Code - Container Fullscreen</title>
<style>
   /* Make the document fill the viewport */
   body {
     margin: 0;
   }
   /* Make any canvas fill its container */
   canvas {
     display: block; /* or inline-block */
     width: 100%;
     height: 100%;
   }
   /* the container */
   #canvas {
       width: 100vw;
       height: 100vh;
   }
</style>
</head>
<body>
<div id="canvas"></div>
</body>
<!--
for most samples webgl-utils only provides shader compiling/linking and
canvas resizing because why clutter the examples with code that's the same in every sample.
See https://webglfundamentals.org/webgl/lessons/webgl-boilerplate.html
and https://webglfundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html
for webgl-utils, m3, m4, and webgl-lessons-ui.
-->
<script src="resources/webgl-utils.js"></script>
<script src="resources/m4.js"></script>
<script src="resources/primitives.js"></script>
<script src="resources/same-code.js"></script>
</html>


